<template>
	<view class="container">
		<view class="Telephone">
			<view class="text"><text>房屋ID</text></view>
			<view class="input"><input type="" v-model="homeId" placeholder="请输入房屋ID" /></view>
		</view>
		<view class="Telephone">
			<view class="text"><text>房子名称</text></view>
			<view class="input"><input type="" v-model="name" placeholder="请输入房子名称" /></view>
		</view>
		<view class="Submit">
			<button class="button" form-type="submit" @click="Submit()" type="primary">提交</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				homeId: '',
				name: '204',
			}
		},
		onLoad: function(option) { //option为object类型，会序列化上个页面传递的参数
			this.homeId = option.homeId
			this.name = option.name
			console.log(option)
		},
		methods: {
			Submit() {
				console.log("房屋ID:" + this.homeId + ",房子名称" + this.name)
			}
		}
	}
</script>

<style>
	.Telephone {
		display: flex;
		margin-top: 2%;
		background: #FFFFFF;
		width: 100%;
		height: 100rpx;
		text-align: center;
	}

	.text {
		height: 100rpx;
		width: 30%;
		display: flex;
		justify-content: center;
		line-height: 100rpx;
	}

	.input {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		width: 40%;
		height: 100rpx;
		line-height: 100rpx;
		text-align: left;
	}

	.v-button {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0;
		padding: 0;
		width: 30%;
		height: 100rpx;
		line-height: 100rpx;
	}

	.Submit {
		display: flex;
		margin-top: 5%;
		width: 100%;
		height: 100rpx;
		justify-content: center;
	}

	.button {
		width: 700rpx;
	}
</style>
